<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
……
<script type="text/javascript" src="j1.js" ></script>
<script type="text/javascript">
    f1()
    alert("func");
</script>
</body>
</html>